﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Gift.DAL.crm;
using Gift.Model.crm;
using Gift.Model.crm.eNum;

namespace WebSite.crm.order
{
    public partial class orderGoodsCountEdit : BaseCrm
    {
        readonly t_DALOrderGoods theOrderGoods = new t_DALOrderGoods();
        t_OrderGoods oOrderGoods;
        //readonly DALtbTempCar theCar = new DALtbTempCar();
        //tbTempCar oCar;

        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnSaveRefresh_Click(object sender, EventArgs e)
        {
            oOrderGoods = theOrderGoods.GetModel(Request.QueryString["code"], int.Parse(Request.QueryString["gid"]));
            if (oOrderGoods != null)
            {
                oOrderGoods.goodsCount = int.Parse(this.txtGoodsCount.Text.Trim());
                theOrderGoods.Update(oOrderGoods);
            }
            ExtAspNet.PageContext.RegisterStartupScript(ExtAspNet.ActiveWindow.GetHidePostBackReference());
        }
    }
}